/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.tbp.persitence.dao;

import br.com.tbp.exception.PersistenciaException;
import br.com.tbp.model.domain.Endereco;
import java.util.List;

/**
 *
 * @author lubni
 */
public interface EnderecoDao {

    public List<Endereco> pesquisar(String cep) throws PersistenciaException;
    public Endereco pesquisar(long id) throws PersistenciaException;
    public void alterar(Endereco e) throws PersistenciaException;
    public void cadastrar(Endereco e) throws PersistenciaException;
    public int cadastrarBairro(String bairro, int codigoCidade) throws PersistenciaException;
    
}

